package com.cicadasmall.system.vo;


import com.cicadasmall.data.domain.DeptDO;
import com.cicadasmall.data.domain.PositionDO;
import com.cicadasmall.data.domain.RoleDO;
import com.cicadasmall.data.domain.UserDO;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Set;

/**
 * @author westboy
 * @date 2019/6/8 12:47
 * @description: TODO
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "UserVo", description = "登录用户")
public class UserVO extends UserDO {

    @JsonIgnore
    private Set<DeptDO> departments;

    @JsonIgnore
    private Set<RoleDO> roles;

    @JsonIgnore
    private Set<PositionDO> positions;

    @JsonIgnore
    private Set<String> permissions;

    @ApiModelProperty(value = "用户所属部门名称")
    public String deptName;
    @ApiModelProperty(value = "用户所属部门编号")
    private Integer[] selectedDeptIds;

    @ApiModelProperty(value = "用户所属职位名称")
    private String postName;
    @ApiModelProperty(value = "用户所属职位编号")
    private Integer[] selectedPostIds;

    @ApiModelProperty(value = "用户所属角色名称")
    private String roleName;
    @ApiModelProperty(value = "用户所属角色编号")
    private Integer[] selectedRoleIds;


}
